-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix AXI4 to AHB converter issues #141
Conversation
@@ -345,8 +354,8 @@ import el2_pkg::*; | |||
end | |||
DATA_WR: begin | |||
buf_state_en = (cmd_doneQ & ahb_hready_q) | ahb_hresp_q; | |||
master_ready = buf_state_en & ~ahb_hresp_q & slave_ready; // Ready to accept new command if current command done and no error | |||
buf_nxtstate = (ahb_hresp_q | ~slave_ready) ? DONE : | |||
master_ready = buf_state_en & ~ahb_hresp_q & axi_bready; // Ready to accept new command if current command done and no error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line length exceeds max: 100; is: 144 [Style: line-length] [line-length]
@@ -403,7 +422,7 @@ import el2_pkg::*; | |||
assign slave_valid = slave_valid_pre;// & (~slvbuf_posted_write | slvbuf_error); | |||
assign slave_opc[3:2] = slvbuf_write ? 2'b11 : 2'b00; | |||
assign slave_opc[1:0] = {2{slvbuf_error}} & 2'b10; | |||
assign slave_rdata[63:0] = slvbuf_error ? {2{last_bus_addr[31:0]}} : ((buf_state == DONE) ? buf_data[63:0] : ahb_hrdata_q[63:0]); | |||
assign slave_rdata[63:0] = slvbuf_error ? {2{last_bus_addr[31:0]}} : ((buf_state == DONE_RD) ? buf_data[63:0] : ahb_hrdata_q[63:0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line length exceeds max: 100; is: 138 [Style: line-length] [line-length]
Internal-Tag: [#49716] Signed-off-by: Maciej Kurc <[email protected]>
Internal-Tag: [#49716] Signed-off-by: Maciej Kurc <[email protected]>
Internal-Tag: [#49716] Signed-off-by: Maciej Kurc <[email protected]>
…eter. Internal-Tag: [#49716] Signed-off-by: Maciej Kurc <[email protected]>
Internal-Tag: [#49716] Signed-off-by: Maciej Kurc <[email protected]>
Internal-Tag: [#49716] Signed-off-by: Maciej Kurc <[email protected]>
00f3765
to
7b1e946
Compare
Links to coverage and verification reports for this PR (#141) are available at https://chipsalliance.github.io/Cores-VeeR-EL2/ |
LGTM |
This PR fixes incorrect operation of
axi4_to_ahb
converter module wherervalid
andbvalid
depend onrready
andbready
respectively which is forbidden by the spec.Microarchitectural tests are updated to exercise correct AXI channel handshaking. A VeeR configuration with AHB bus where the
axi4_to_ahb
module is used is added to CI regression tests.